From: Eneas U de Queiroz Date: Thu, 13 Nov 2025 21:08:06 +0000 (-0300) Subject: oqs-provider: add CI test X-Git-Url: http://git.openwrt.org/%22https:/collectd.org/%22http:/www.crowdsec.net//%22https%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22https%22?a=commitdiff_plain;h=e3fc6411150d7309a21b35ddd58ea76f4caf5c33;p=feed%2Fpackages.git oqs-provider: add CI test This runs a couple of openssl commands to verify that the provider is loading and generate a private key, without any output checks. Signed-off-by: Eneas U de Queiroz [ use APK and improve commit title ] Signed-off-by: Christian Marangi --- diff --git a/libs/oqs-provider/test.sh b/libs/oqs-provider/test.sh new file mode 100755 index 0000000000..030768edc4 --- /dev/null +++ b/libs/oqs-provider/test.sh @@ -0,0 +1,19 @@ +#!/bin/sh + +test_oqsprovider() { + RET=0 + apk add openssl-util + openssl list -all-algorithms | grep oqsprovider || RET=1 + openssl genpkey -verbose -algorithm mayo1 -text || RET=1 + exit $RET +} + +case "$1" in + libopenssl-oqsprovider) + test_oqsprovider + ;; + *) + echo "Unexpected package '$1'" >&2 + exit 1 + ;; +esac